package com.young.springdemo.service.adapter;

public class EmerCarControllerAdapter extends PoliceCarController {
    private EmerLight emerLight;
    private EmerAlarm emerAlarm;
    private PoliceLamp policeLamp;
    private PoliceAlarm policeAlarm;

    public EmerCarControllerAdapter() {
        emerAlarm = new EmerAlarm();
        emerLight = new EmerLight();
    }

    @Override
    public void alarm() {
        emerAlarm.alarm();
    }

    @Override
    public void light() {
        emerLight.light();
    }
}
